package com.smart.city.logger;

import java.util.Vector;

public abstract class SensorLogger {
	protected Vector<Loggable> loggers = null;
	protected Vector<Sensable> sensors = null;
	
	public SensorLogger() {
		this.loggers = new Vector<Loggable>();
		this.sensors = new Vector<Sensable>();
	}
		
	public void addSensor(Sensable sensor) {
		this.sensors.add(sensor);
	}
	
	public void removeSensor(Sensable sensor) {
		this.sensors.remove(sensor);
	}
	
	public void addLogger(Loggable logger) {
		this.loggers.add(logger);
	}
	
	//public void removeSensor(Loggable logger) {
	//	this.loggers.remove(logger);
	//}
	public void removeLogger(Loggable logger) {
		this.loggers.remove(logger);
	}
	
	
	public abstract void startLogging();
	
	public abstract void endLogging();
}
